package com.iwdnb.gkgz.common.model.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.fastjson.JSONObject;

import com.iwdnb.bmnf.common.utils.BooleanUtils;
import com.iwdnb.gkgz.common.quota.BollingerBands.BollingerData;
import com.iwdnb.gkgz.common.quota.Macd.MacdData;
import lombok.Data;

@Data
public class StockLimitUpData implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;

    private String code;

    /**
     * 开盘价
     */
    private BigDecimal openPrice;
    /**
     * 收盘价
     */
    private BigDecimal closePrice;
    /**
     * 最高价
     */
    private BigDecimal maxPrice;
    /**
     * 最低价
     */
    private BigDecimal minPrice;
    /**
     * 平均价
     */
    private BigDecimal avgPrice;
    /**
     * 成交的股票数
     */
    private Integer tradeNum;
    private BigDecimal increasePer;
    private BigDecimal wavePer;
    private Date date;
    /**
     * 涨跌幅
     */
    private BigDecimal rate;
    /**
     * 最低跌幅
     */
    private BigDecimal lowRate;
    /**
     * 最高跌幅
     */
    private BigDecimal highRate;

    private String tldFlag;

    private TldMatchInfo tldMatchInfo;

    private String tldBuyFlag;

    private Date tldBuyTime;

    private BigDecimal tldBuyPrice;
    /**
     * 止损价格
     */
    private BigDecimal tldStopLossPrice;

    private String tldSellFlag;

    private Date tldSellTime;

    private BigDecimal tldSellPrice;

    private BigDecimal tldProfitRate;

    private String tldBuyInfo;

    private String tldSellInfo;

    private String tldSellRemark;

    public void init() {
        id = null;
        tldFlag = BooleanUtils.FALSE;
        tldBuyFlag = BooleanUtils.FALSE;
        tldSellFlag = BooleanUtils.FALSE;
    }

}
